package services

import (
	"fmt"
	"longmen/server/pkg/common/helper/util"
	"longmen/server/pkg/db/mysql/db_main"
)

//获取风控的禁言词汇
func (s *Service) GetBlackKeyword() ([]string, error) {
	fName := "GetBlackKeyword"
	keywords, err := db_main.GetBlackKeyword()
	if err != nil {
		return nil, fmt.Errorf("%s%s", util.Convert(fName), err.Error())
	}
	return keywords, err
}
